package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingPlanDto;
import com.zzyl.dto.NursingProjectDto;
import com.zzyl.dto.ProjectPlanDto;
import com.zzyl.entity.NursingPlan;
import com.zzyl.entity.NursingProjectPlan;
import com.zzyl.vo.NursingPlanVo;
import com.zzyl.vo.ProjectPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NursingPlanMapper {

    Page<NursingPlan> findAllByPage(String name, Integer status);

    @Select("select * from nursing_plan where id = #{id}")
    NursingPlanVo findById(Long id);

    List<ProjectPlanVo> selectById(Long id);

    void save(NursingPlan nursingPlan);
    void saveProjectPlan(NursingProjectPlan nursingProjectPlan);


    void updateById(NursingPlan nursingPlan);
//    void updateProjectById(List<ProjectPlanDto> nursingProjectPlanDto);
//      void updateProjectById(ProjectPlanDto nursingProjectPlanDto);


    void deleteById(Long id);

    void updateStatusById(Long id, Integer status);


}
